package com.charles.seckillapi.domain;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @author Charels-H
 * 
 * 产品表
 */
public class SysGood implements Serializable {
    
    private static final long serialVersionUID = 1L;

    /**
     * 产品id
     */
    private Long good_id;

    /**
     * 产品名称
     */
    private String good_title;

    /**
     * 产品图片
     */
    private String good_img;

    /**
     * 产品描述
     */
    private String good_desc;

    /**
     * 产品总量
     */
    private Long total;

    /**
     * 产品库存
     */
    private Long remain;

    /**
     * 产品原价
     */
    private BigDecimal price;

    /**
     * 产品秒杀价
     */
    private BigDecimal seckill_price;

    /**
     * 秒杀开始时间
     */
    private Date start_time;

    /**
     * 秒杀结束时间
     */
    private Date end_time;

    /**
     * 创建时间
     */
    private Date create_time;

    /**
     * 修改时间
     */
    private Date update_time;


    public SysGood() {
    }

    public SysGood(Long good_id, String good_title, String good_img, String good_desc, Long total, Long remain, BigDecimal price, BigDecimal seckill_price, Date start_time, Date end_time, Date create_time, Date update_time) {
        this.good_id = good_id;
        this.good_title = good_title;
        this.good_img = good_img;
        this.good_desc = good_desc;
        this.total = total;
        this.remain = remain;
        this.price = price;
        this.seckill_price = seckill_price;
        this.start_time = start_time;
        this.end_time = end_time;
        this.create_time = create_time;
        this.update_time = update_time;
    }

    public Long getGood_id() {
        return good_id;
    }

    public void setGood_id(Long good_id) {
        this.good_id = good_id;
    }

    public String getGood_title() {
        return good_title;
    }

    public void setGood_title(String good_title) {
        this.good_title = good_title;
    }

    public String getGood_img() {
        return good_img;
    }

    public void setGood_img(String good_img) {
        this.good_img = good_img;
    }

    public String getGood_desc() {
        return good_desc;
    }

    public void setGood_desc(String good_desc) {
        this.good_desc = good_desc;
    }

    public Long getTotal() {
        return total;
    }

    public void setTotal(Long total) {
        this.total = total;
    }

    public Long getRemain() {
        return remain;
    }

    public void setRemain(Long remain) {
        this.remain = remain;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public BigDecimal getSeckill_price() {
        return seckill_price;
    }

    public void setSeckill_price(BigDecimal seckill_price) {
        this.seckill_price = seckill_price;
    }

    public Date getStart_time() {
        return start_time;
    }

    public void setStart_time(Date start_time) {
        this.start_time = start_time;
    }

    public Date getEnd_time() {
        return end_time;
    }

    public void setEnd_time(Date end_time) {
        this.end_time = end_time;
    }

    public Date getCreate_time() {
        return create_time;
    }

    public void setCreate_time(Date create_time) {
        this.create_time = create_time;
    }

    public Date getUpdate_time() {
        return update_time;
    }

    public void setUpdate_time(Date update_time) {
        this.update_time = update_time;
    }

    @Override
    public String toString() {
        return "SysGood{" +
                "good_id=" + good_id +
                ", good_title='" + good_title + '\'' +
                ", good_img='" + good_img + '\'' +
                ", good_desc='" + good_desc + '\'' +
                ", total=" + total +
                ", remain=" + remain +
                ", price=" + price +
                ", seckill_price=" + seckill_price +
                ", start_time=" + start_time +
                ", end_time=" + end_time +
                ", create_time=" + create_time +
                ", update_time=" + update_time +
                '}';
    }
}
